Skip to content

gh-51067: Extract _read_local_file_header() as a module-level function#152139

Merged
StanFromIreland merged 1 commit into
python:mainfrom
danny0838:gh-51067-5
Jun 25, 2026
Merged

gh-51067: Extract _read_local_file_header() as a module-level function#152139
StanFromIreland merged 1 commit into
python:mainfrom
danny0838:gh-51067-5

Conversation

@danny0838

@danny0838 danny0838 commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Move the duplicate logic for reading and validating local file headers from ZipFile.open() and multiple _Repacker methods into a single shared function. This establishes a single source of truth to ensure behavioral consistency and prevents redundant code.

… function

Move the duplicate logic for reading and validating local file headers
from `ZipFile.open()` and multiple `_Repacker` methods into a single
shared function.  This establishes a single source of truth to ensure
behavioral consistency and prevents redundant code.

@StanFromIreland StanFromIreland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StanFromIreland StanFromIreland added skip news type-refactor Code refactoring (with no changes in behavior) labels Jun 25, 2026
@StanFromIreland StanFromIreland merged commit 2b3ea68 into python:main Jun 25, 2026
143 of 147 checks passed
@StanFromIreland

Copy link
Copy Markdown
Member

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-refactor Code refactoring (with no changes in behavior)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants